﻿using System;

namespace VH6I_B4.Datawarehouse.Models
{
    /// <summary>
    /// Omschrijft een supermarkt
    /// </summary>
    class Supermarket
    {
        private int id;
        private string name;

        public Supermarket(string name)
        {
            Name = name;
        }

        public override bool Equals(object obj)
        {
            bool result = false;

            if (obj != null)
            {
                Supermarket product = (Supermarket)obj;
                if (product.Name.Equals(Name))
                {
                    result = true;
                }
            }

            return result;
        }

        public int Id       { get { return id; } set { id = value; } }
        public string Name  { get { return name; } set { name = value; } }
    }
}
